#include<iostream>
#include<algorithm>
#include<vector>
#include<map>
#include<string>
using namespace std;
int n;
map<string, int>mp;
int main()
{
	int n;
	cin >> n;
	vector<string> s;
	for (int i = 0; i < n; i++) {
		sort(s[i].begin(), s[i].end());
		s[i].erase(uni)
	}
	return 0;
}